function showMessageAndClose(type) {
	var message = document.getElementById("messageBox");
	if (message.innerHTML.length > 0) {
		message.innerHTML = "<table><tr><td><img src\='../images/message" + type.toString() + ".gif'/></td><td>&nbsp;&nbsp;"
				+ message.innerHTML + "</td></tr></table>";
		message.style.visibility = "visible";
		setTimeout( function() {
			var m = document.getElementById("messageBox");
			m.parentNode.removeChild(m);
		}, 5000);
	}
}